<template>
    <el-row>
        <el-col
            :xs="24"
            :sm="24"
            :md="8"
            :lg="8"
            :xl="6"
            class="input"
        >
            <el-input
                class="text"
                v-model="username"
                placeholder="邮箱"
            >
                <template #prepend>
                    请输入账号
                </template>
            </el-input>
            <el-input
                class="text"
                v-model="userPassword"
                placeholder="请输入密码"
            >
                <template #prepend>
                    请输入密码
                </template>
            </el-input>
            <el-button @click="loginSubmit">提交</el-button>
        </el-col>
    </el-row>
</template>

<script>
export default {
    name: "login",
    data() {
        return{
            username:"",
            userPassword:""
        }
    },
    methods:{
        loginSubmit() {
            console.log(this.username);
            console.log(this.userPassword);
        }
    }
}
</script>

<style scoped>

</style>
